<?php
/**
 * Search a Customer -
 *
 * @author Xavier VILAIN
 *
 */

use Fox\Html\Interval;
use Fox\Dao\SqlFragment;
use Shama\Messages;
use Fox\Html\Button;

$searchScreen = new Fox\Html\Screen\Search\Basic("search",new Shama\Campain(),array('label' => false));
$searchScreen->screen()->mainTitle("<div class=\"page-title\">".Msg(Messages::BUNDLE,Messages::SEARCH_CAMMPAINS)."</div>");
$searchScreen->screen()->toolbar()->add(new Button("create","?mod=campains&act=create"));
$searchScreen->block()->add(new Interval('cdate'));

$searchScreen->grid(Xview::instance()->component("campains","result"));
echo $searchScreen->render();